@Regressiontest
Feature: As a user I want to verify Register page

  Background: navigate to homepage
    Given user navigates to "http://demo.nopcommerce.com"

  @CheckingRegisterPageWithValidDetails
  Scenario: Register user with valid details
    Given user clicks on register link
    And check page title "nopCommerce demo store. Register"
    And select radio button
    And fill textbox:
      | FirstName | LastName | Company | Password | ConfirmPassword | Email |
    And select Date of birth "2","2","1985"
    And tick "Newsletter"
    When click on "register-button"
    Then user navigates to register cofirmation page

  @CheckingFooterMenuInformationSitemapLinkSearchoption
  Scenario Outline: I verify search page under sitemap link
    Given As a user I click on "Sitemap" link
    And check page title "nopCommerce demo store. Sitemap"
    And As a user I click on "Search" link
    And I tick the check box "As"
    Then I tick the check box
      | Isc | Sid |
    And I fill textbox "<searchitem>","<startprice>","<maxprice>"
      | search-text | price-from | price-to |
    And I select category "1" Manufacturer "1"
    When I click on search button
    Then I should see the "<searchresult>" displayed

    Examples: 
      | searchitem | startprice | maxprice | searchresult                                         |
      | laptop     | 1000       | 2000     | HP Pavilion Artist Edition DV2890NR 14.1-inch Laptop |
